.weight-page {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.header {
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #eee;
}
.nav-title {
  font-size: 18px;
  font-weight: 600;
}

.controls {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  background: #fff;
}
.btn {
  padding: 8px 12px;
  background: #108ee9;
  color: #fff;
  border-radius: 6px;
}
.btn.secondary {
  background: #f2f2f2;
  color: #333;
}

.calendar {
  padding: 12px 16px;
  background: #fff;
  margin-top: 8px;
}
.month-title {
  font-size: 16px;
  margin-bottom: 8px;
}
.days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.day-cell {
  min-height: 60px;
  padding: 6px;
  background: #fafafa;
  border-radius: 6px;
  font-size: 12px;
}
.day-number {
  font-size: 12px;
  color: #666;
}
.day-weight {
  margin-top: 6px;
  font-size: 14px;
  color: #108ee9;
  font-weight: 600;
}

.chart-wrap {
  padding: 12px 16px;
  background: #fff;
  margin-top: 8px;
}

/* dialog */
.overlay {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}
.dialog {
  width: 86%;
  background: #fff;
  padding: 14px;
  border-radius: 8px;
}
.dialog-row { margin: 8px 0; }
.dialog-actions { display:flex; gap:8px; justify-content:flex-end; margin-top:12px }
